package com.sentrix.auto.printercenter.presentation.center.dto;

import com.sentrix.auto.printercenter.domain.entity.StationEntity;
import com.sentrix.auto.printercenter.infrastructure.util.VOUtil;
import lombok.Data;

import java.util.List;

@Data
public class StationResDto {
    private String code;
    private String name;

    private List<String> printerCodes;

    public static StationResDto fromDomain(StationEntity stationEntity) {
        return VOUtil.modelMapper().map(stationEntity, StationResDto.class);
    }
}
